Optimizing ML Using a Hierarchy of Monadic Types

نویسنده

  • Andrew P. Tolmach
چکیده

We describe a type system and typed semantics that use a hierarchy of monads to describe and delimit a variety of e ects, including non-termination, exceptions, and state, in a call-by-value functional language. The type system and semantics can be used to organize and justify a variety of optimizing transformations in the presence of e ects. In addition, we describe a simple monad inferencing algorithm that computes the minimum e ect for each subexpression of a program, and provides more accurate e ects information than local syntactic methods.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Monadic Quanti

The monadic second-order quantiier alternation hierarchy over the class of nite graphs is shown to be strict. The proof is based on automata theoretic ideas and starts from a restricted class of graph-like structures, namely nite two-dimensional grids. Considering grids where the width is a function of the height, we prove that the diierence between the levels k +1 and k of the monadic hierarch...

متن کامل

Relating Levels of the Mu-Calculus Hierarchy and Levels of the Monadic Hierarchy

As already known [14], the mu-calculus [17] is as expressive as the bisimulation invariant fragment of monadic second order Logic (MSO). In this paper, we relate the expressiveness of levels of the fixpoint alternation depth hierarchy of the mu-calculus (the mu-calculus hierarchy) with the expressiveness of the bisimulation invariant fragment of levels of the monadic quantifiers alternation-dep...

متن کامل

The Monadic Quantifier Alternation Hierarchy over Grids and Pictures

The subject of this paper is monadic second-order logic over two-dimensional grids. We give a game-theoretical proof for the strictness of the monadic second-order quan-tiier alternation hierarchy over grids. Additionally, we can show that monadic second-order logic over coloured grids is expressive enough to deene complete problems for each level of the polynomial time hierarchy.

متن کامل

Hierarchies in Fragments of Monadic Strict NP

We expose a strict hierarchy within monotone monadic strict NP without inequalities (MMSNP), based on the number of second-order monadic quantifiers. We do this by studying a finer strict hierarchy within a class of forbidden patterns problems (FPP), based on the number of permitted colours. Through an adaptation of a preservation theorem of Feder and Vardi, we are able to prove that this stric...

متن کامل

The Monadic Quantifier Alternation Hierarchy over Graphs is Infinite

We show that in monadic second-order logic over finite directed graphs, a strict hierarchy of expressiveness is obtained by increasing the (second-order) quantifier alternation depth of formulas. Thus, the “monadic analogue” of the polynomial hierarchy is found to be strict, which solves a problem of Fagin. The proof is based on automata theoretic concepts (rather than Ehrenfeucht-Fraı̈ssé games...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998